PEGetSelectionFormula

Use PEGetSelectionFormula to retrieve the string handle for the selection formula used in the specified report. Use this function with PEGetHandleString. Use PESetSelectionFormula, to pass back the selection formula. The series can be used in a Custom-Print Link to identify and then change an existing record selection formula in response to a user selection at print time.

C Syntax
BOOL CRPE_API PEGetSelectionFormula (
        short printJob,
        HANDLE FAR *textHandle,    
        short FAR *textLength );
Parameters

printJob

Specifies the print job for which you want to retrieve the selection formula string.

textHandle

Specifies a pointer to the handle of the string containing the formula text.

textLength

Specifies a pointer to the length of the formula string (in bytes) including the terminating byte.

Returns
VB Syntax

VB Sample Code for modifying selection formulas and group selection formulas

Declare Function PEGetSelectionFormula Lib "crpe32.dll" (ByVal printJob 
As Integer, TextHandle As Long, TextLength As Integer) As Integer
Delphi Syntax
function PEGetSelectionFormula (
    printJob: Word;
    var textHandle: HWnd;
    var textLength: Word
    ): Bool stdcall;


Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com